﻿@using SCMS.CoreBusinessLogic.Settings
<div id='nav-container'>
    <ul id="nav">
        <li><a href="/Dashboard/">Home</a></li>
        <li><a class="hsubs" href="#">Procurement</a>
            <ul class="subs">
                @if (UserContext.HasPermission(StandardPermissionProvider.OrderRequestViewAll))
                {
                    <li><a href="/OrderRequest/" title="">ORDER REQUEST (<span>OR</span>)</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.TenderAnalysisViewAll))
                {
                    <li><a href="/TenderAnalysis/" title="">TENDER ANALYSIS (<span>TA</span>)</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.PurchaseOrderViewAll))
                {
                    <li><a href="/PurchaseOrder/" title="">PURCHASE ORDER (<span>PO</span>)</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.CompletionCertificateView))
                {
                    <li><a href="/CompletionCertificate/" title="">COMPLETION NOTE</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.ProcurementPlanView))
                {
                    <li><a href="/ProcurementPlan/" title="">PROCUREMENT PLAN</a></li>
                }
            </ul>
        </li>
        <li><a class="hsubs" href="#">Inventory</a>
            <ul class="subs">
                @if (UserContext.HasPermission(StandardPermissionProvider.GoodsReceivedNoteViewAll))
                {
                    <li><a href="/GoodsReceivedNote/" title="">GOODS RECEIVED NOTE</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.WarehouseReleaseOrderViewAll))
                {
                    <li><a href="/WRForm/" title="">WH RELEASE ORDER</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.InventoryViewGeneral))
                {
                    <li><a href="/Inventory/" title="">VIEW INVENTORY</a> </li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.WaybillViewAll))
                {
                    <li><a href="/WayBill/" title="">WAYBILL (<span>WB</span>)</a> </li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.InventoryRegisterAssets))
                {
                    <li><a href="@Url.Content("~/GoodsReceivedNote/RegisterAsset")" title="">INVENTORY MANAGEMENT</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.RequestForPaymentViewAll))
                {
                    <li><a href="/FleetManager/" title="">Fleet Management</a></li>
                }
            </ul>
        </li>
        <li><a class="hsubs" href="#">Finance</a>
            <ul class="subs">
                @if (UserContext.HasPermission(StandardPermissionProvider.RequestForPaymentViewAll))
                {
                    <li><a href="/Request4Payment/" title="">REQUEST FOR PAYMENT</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.RequestForAdvanceViewAll))
                {
                    <li><a href="/Request4Advance/" title="">REQUEST FOR ADVANCE</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.ExpenseClaimViewAll))
                {
                    <li><a href="/ExpenseClaim/" title="">EXPENSE CLAIM (<span>ECF</span>)</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.SalaryPaymentViewAll))
                {
                    <li><a href="/SalaryPament/" title="">SALARY PAYMENT (<span>SPM</span>)</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.RequestForAdvancePostFunds) || UserContext.HasPermission(StandardPermissionProvider.RequestForPaymentPostFunds) ||
                    UserContext.HasPermission(StandardPermissionProvider.ExpenseClaimPostFunds) || UserContext.HasPermission(StandardPermissionProvider.SalaryPaymentPostFunds))
                {
                    <li><a href="/FundPosting/" title="">POST FUNDS</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.TravelAuthorizationViewAll))
                {
                    <li><a href="/TravelAuth/" title="">Travel Authorization</a></li>
                }
            </ul>
        </li>
        <li><a href="#" class="hsubs">Budget</a>
            <ul class="subs">
                @if (UserContext.HasPermission(StandardPermissionProvider.ProjectBudgetView))
                {
                    <li><a href="/Budget/" title="">MANAGE BUDGETS</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.MasterBudgetView))
                {
                    <li><a href="/MasterBudget/" title="">VIEW MASTER BUDGET</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.MasterBudgetCategoriesView))
                {
                    <li><a href="/MasterBudget/MBCIndex" title="">MB CATEGORIES</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.MasterBudgetProjectionView))
                {
                    <li><a href="/MasterBudget/MBPIndex" title="">MB PROJECTIONS</a></li>
                }
            </ul>
        </li>
        <li><a href="#">Reports</a>
            <ul class="subs">
                <li><a href="@Url.Action("Index", "ProcurementReports", new { area = "Reports" })" title="Procument Management Reports">
                    Procument </a></li>
                <li><a href="@Url.Action("Index", "FinanceReports", new { area = "Reports" })" title="Finance Managment Reports">
                    Finance Management</a></li>
                <li><a href="@Url.Action("Index", "InventoryReports", new { area = "Reports" })" title="Inventory">
                    Inventory</a></li>
                <li><a href="@Url.Action("Index", "FleetReports", new { area = "Reports" })" title="Fleet Managment">
                    Fleet Managment</a></li>
            </ul>
        </li>
        <li><a href="#" class="hsubs">Administration</a>
            <ul class="subs">
                @if (UserContext.HasPermission(StandardPermissionProvider.SystemUsersView))
                {
                    <li><a href="@Url.Content("~/Admin/SystemUser")" title="">System Users List</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.RolesManage))
                {
                    <li><a href="@Url.Content("~/Admin/Role")" title="">Roles List</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.AclManage))
                {
                    <li><a href="@Url.Content("~/Admin/Security/Permissions")" title="">Acl Manage</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.SettingsManage))
                {
                    <li><a href="@Url.Content("~/Admin/Settings")" title="">Manage Settings</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.ApproversView))
                {
                    <li><a href="@Url.Content("~/Admin/Approver")" title="">Manage Approvers</a></li>
                }
                @if (UserContext.HasPermission(StandardPermissionProvider.GlobalSettingsManage))
                {
                    <li><a href="/GlobalSettings/" title="">GLOBAL SETTINGS</a></li>
                }
                <li><a href="@Url.Content("~/Admin/SystemUser/ViewProfile")" title="">My Profile</a></li>
            </ul>
        </li>
    </ul>
    @RenderPage("~/Views/Shared/General/SearchForm.cshtml")
</div>
